﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Webshop20.Infrastructure.Persistence.NH.Configuration;

namespace Webshop20.NHiberntate.Setup.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                System.Console.WriteLine("Setting up Database...");
                var sessionFactory = NHibernateSetup.GetSessionFactory(@"Data Source=NOTEBOOK\SQLEXPRESS;Initial Catalog=webshop247;Integrated Security=True;Pooling=False");
                System.Console.WriteLine("Setting up In Memory DB...");
                var x = NHibernateSetup.GetSessionFactoryForIntegrationTests("data source=:memory:");
                System.Console.WriteLine("Finished...");
            }
            catch (Exception ex)
            {
                
                System.Console.WriteLine(ex.Message);
            }


            System.Console.ReadLine();
        }
    }
}
